package com.dabai.iot.core.convert;

import com.dabai.iot.core.dto.ThingModelItemInput;
import com.dabai.iot.core.entity.ThingModelItemEntity;
import com.dabai.iot.core.vo.ThingModelItemVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 物模型属性 Convert
 *
 * @author kev1n
 */
@Mapper
public interface ThingModelItemConvert {

    ThingModelItemConvert INSTANCE = Mappers.getMapper(ThingModelItemConvert.class);

    ThingModelItemEntity convert(ThingModelItemInput input);

    ThingModelItemVO convertDetail(ThingModelItemEntity thingModelItem);
}
